package com.ruoyi.project.modules.processBranchConditionDetail.mapper;

import java.util.List;
import com.ruoyi.project.modules.processBranchConditionDetail.domain.ProcessBranchConditionDetail;
import org.apache.ibatis.annotations.Param;

/**
 * 分支条件明细Mapper接口
 * 
 * @author smallrain
 * @date 2022-04-02
 */
public interface ProcessBranchConditionDetailMapper 
{
    /**
     * 查询分支条件明细
     * 
     * @param branchConditionDetailId 分支条件明细主键
     * @return 分支条件明细
     */
    public ProcessBranchConditionDetail selectProcessBranchConditionDetailByBranchConditionDetailId(Long branchConditionDetailId);

    /**
     * 查询分支条件明细列表
     * 
     * @param processBranchConditionDetail 分支条件明细
     * @return 分支条件明细集合
     */
    public List<ProcessBranchConditionDetail> selectProcessBranchConditionDetailList(ProcessBranchConditionDetail processBranchConditionDetail);

    /**
     * 新增分支条件明细
     * 
     * @param processBranchConditionDetail 分支条件明细
     * @return 结果
     */
    public int insertProcessBranchConditionDetail(ProcessBranchConditionDetail processBranchConditionDetail);

    /**
     * 修改分支条件明细
     * 
     * @param processBranchConditionDetail 分支条件明细
     * @return 结果
     */
    public int updateProcessBranchConditionDetail(ProcessBranchConditionDetail processBranchConditionDetail);

    /**
     * 删除分支条件明细
     * 
     * @param branchConditionDetailId 分支条件明细主键
     * @return 结果
     */
    public int deleteProcessBranchConditionDetailByBranchConditionDetailId(Long branchConditionDetailId);

    /**
     * 批量删除分支条件明细
     * 
     * @param branchConditionDetailIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteProcessBranchConditionDetailByBranchConditionDetailIds(String[] branchConditionDetailIds);

    void batchSave(@Param("processBranchConditionDetailList") List<ProcessBranchConditionDetail> processBranchConditionDetailList);

    void batchDeleteByProcessBranchIds(@Param("processBranchIds") List<Long> processBranchIds);

    void deleteByBranchConditionId(@Param("branchConditionId") Long branchConditionId);

    List<ProcessBranchConditionDetail> selectProcessBranchConditionDetails(@Param("processBranchConditionDetail") ProcessBranchConditionDetail processBranchConditionDetail);
}
